import 'package:dio/dio.dart';
import 'package:ymt/api/apis.dart';

class Request{
  static Dio _dio;

  static _init(){
    _dio = Dio();
    _dio.options.baseUrl = ApiCenter.API_HOST;
    _dio.interceptors.add(LogInterceptor(responseHeader:false, responseBody: true));
  }

  static Dio dio(){
    if(_dio == null){
      _init();
    }
    return _dio;
  }

}